package pl.edu.agh.uhm.core;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		
		
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.35f, editorArea);
		left.addView(DevicesTreeView.ID);
		layout.getViewLayout(DevicesTreeView.ID).setCloseable(false);
		
		IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, 0.65f, editorArea);
		left.addView(DeviceTableView.ID);
		layout.getViewLayout(DeviceTableView.ID).setCloseable(false);
		
		
	}
	

}
